<?php
class EnviarEmail extends PhpMailer {
    
    function __construct() {
        $this->Port = 587;
        $this->Host = "smtp.sigevent.com.br";
        $this->Password = "b1012csa";
        $this->From = "no-reply@sigevent.com.br";
        $this->Username = "no-reply@sigevent.com.br";
        $this->CharSet = "UTF-8";
        $this->IsSMTP();
        $this->SMTPAuth = true;
        $this->IsHTML(true);
    }
    
    public function setCharset($charset){
        $this->CharSet = $charset;
    }
    
    public function setPort($port){
        $this->Port = $port;
    }
    
    public function Enviar(){
        if ($this->Send()) {
            $this->SmtpClose();
            return true;
        } else {
            $this->SmtpClose();
            return false;
        }
    }
    
}